<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="${siteurl}/assets/js/jquery-1.11.1.min.js"></script>
<script src="${siteurl}/assets/js/jquery.form.js"></script>
<script type="text/javascript"
	src="${siteurl}/assets/plugs/bootstrap/js/bootstrap.min.js"></script>
<link href="${siteurl}/assets/plugs/bootstrap/css/bootstrap.min.css"
	type="text/css" rel="stylesheet" />


<script type="text/javascript"
	src="${siteurl}/assets/plugs/sweetalert/sweet-alert.min.js"></script>
<link href="${siteurl}/assets/plugs/sweetalert/sweet-alert.css"
	type="text/css" rel="stylesheet" />

<title>艾达CMS</title>
<style type="text/css">
.padding {
	margin-top: 5px;
	margin-bottom: 5px;
}
</style>
<script type="text/javascript">
	function submitwork() {

		var options = {
			success : showResponse, //提交后的回调函数  
			//url: url,                 //默认是form的action， 如果申明，则会覆盖  
			//type: type,               //默认是form的method（get or post），如果申明，则会覆盖  
			//dataType: null,           //html(默认), xml, script, json...接受服务端返回的类型  
			//clearForm : true, //成功提交后，清除所有表单元素的值  
			//resetForm: true,          //成功提交后，重置所有表单元素的值  
			timeout : 3000
		//限制请求的时间，当请求大于3秒后，跳出请求  
		}
		$("#form").ajaxSubmit(options);

	}
	function showResponse(responseText, statusText) {
		//dataType=xml  
		swal("信息提示", responseText, "success");
		window.location.reload();
	};
</script>
</head>
<body>
<body>


	[#include "/common/nav.html"]





	<div class="jumbotron masthead">
		<div class="container">
			<h1>艾达CMS</h1>
			<h2>一切才刚刚开始，世界正在等着我们去联结！</h2>
		</div>
	</div>
	<div class="container">
		[#if list??] [#list list as item]
		<div class="row">
			<div class="col-xs-9 ">
				<h1>${item.name!""}</h1>
				<p>${item.content!""}</p>
			</div>
		</div>
		[/#list] [/#if]

	</div>
	<div class="container">
		<div class="row">
			<div class="col-xs-9">
				<form role="form" id="form" action="${siteurl}/comment/save.htm"
					method="post">
					<input name="name" type="text" class="form-control padding"
						placeholder="用户名">
					<textarea name="content" class="form-control padding" rows="3"
						placeholder="留言内容"></textarea>
					<button type="button" class="btn btn-default"
						onclick="submitwork();">留言</button>
				</form>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-xs-9">
				<!-- UY BEGIN -->
				<div id="uyan_frame"></div>
				<script type="text/javascript"
					src="http://v2.uyan.cc/code/uyan.js?uid=97252"></script>
				<!-- UY END -->
			</div>
		</div>
	</div>
	[#include "/common/foot.html"]
</body>


</html>